<template>
  <div>我是emits组件</div>
  <span>{{ props.title }}</span>
  <button @click="emits('change', '我才是标题')">改变</button>
  <button @click="emitter.emit('props-1', 111)">Event Bus传递参数</button>
</template>

<script lang="ts" setup>
import emitter from '../utils/mitt'
const props = withDefaults(defineProps<{
  title: string
}>(), {

})

const emits = defineEmits(['change'])
</script>
